<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/30
 * Time: 18:21
 */
require_once(dirname(__FILE__) . '/../../inc/config.inc.php');
IsModelPriv('goodsorder');

$typeid = isset($_GET['typeid']) ? intval($_GET['typeid']) : 0 ;



$row_arr=[];
$list="";

$sql="SELECT *  FROM `#@__task`   where `is_delete`=0  and  `checkinfo`=1 and classid='$typeid' order by orderid asc  ";

$dosql->Execute($sql);
while ($row = $dosql->GetArray()) {
    $list.='<option value="' . $row['id'] . '" >' . $row['title'] . "  " . $row['value'] . '/' . $row['unit'] . '</option>';
}

$row_arr['code'] = 0;
$row_arr['msg'] = "success";
$row_arr['data'] = $list;
echo json_encode($row_arr,JSON_UNESCAPED_UNICODE);